/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.support;

import ru.jSkyRoom.interfaces.support.NullArgumentPermited;
import ru.jSkyRoom.interfaces.Major;
import skyproc.FormID;

/**
 *
 * @author Rakev
 */
public class FormIdProducer{
    
    @NullArgumentPermited
    public static <F extends Major> FormID produce(F fromObject) {
        if (fromObject != null) {
            return fromObject.getForm();
        } else {
            return null;
        }
    }

    private FormIdProducer() {
    }
}
